
<script setup lang="ts">
import { ref, defineProps } from 'vue';
import { useCounterStore } from '../store';
import { getCategoryAPI } from '@/api/api';
// 宏定义
const counterStore = useCounterStore()

const apitest = async () =>{
  let res = await getCategoryAPI();
  console.log(res);
}
</script>

<template>
  <div>
    <button @click="apitest">+</button>
    {{ counterStore.count }}
    <a-button  @click="apitest" type="primary">Primary Button</a-button>
    <!-- <el-button type="primary">i am button</el-button> -->
  </div>
  <!-- <router-view></router-view> -->
</template>

<style>

</style>
